home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 July / EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso / lightwave / lwmlist / 95.lightwave-07 / 000098_owner-lightwave@webcom.com_Wed Jul 5 23:18:52 1995.msg < prev    next >
Internet Message Format  |  1995-08-06  |  2KB

  1. Received: by webcom.com
  2.     (1.37.109.15/16.2) id AA177131532; Wed, 5 Jul 1995 23:18:52 -0700
  3. Return-Path: <owner-lightwave@webcom.com>
  4. Received: from access4.digex.net by webcom.com with ESMTP
  5.     (1.37.109.15/16.2) id AA177021524; Wed, 5 Jul 1995 23:18:44 -0700
  6. Received: (from erniew@localhost) by access4.digex.net (8.6.12/8.6.12) id CAA07584 ; for ; Thu, 6 Jul 1995 02:23:18 -0400
  7. Date: Thu, 6 Jul 1995 02:23:17 -0400 (EDT)
  8. From: Ernie Wright <erniew@access.digex.net>
  9. To: lightwave@webcom.com
  10. Subject: Re: Colour Bars
  11. In-Reply-To: <199507051854.PAA16840@Fox.NSTN.Ca>
  12. Message-Id: <Pine.SUN.3.91.950706020547.7419A-100000@access4.digex.net>
  13. Mime-Version: 1.0
  14. Content-Type: TEXT/PLAIN; charset=US-ASCII
  15. Sender: owner-lightwave@webcom.com
  16. Precedence: bulk
  17.  
  18. Chris Purdie wrote:
  19.  
  20. > However, can I assume that a slider of 12 in a 16 colour slider (12/16) 
  21. > equals X(My Red)/255? If I do the math it works out like this:
  22. >             12          X
  23. >             ---    =   ---           16X = 3060          X = 191.25
  24. >             16        255 
  25.  
  26. That should be 12/15, not 12/16.  But if you do this 4-bit to 8-bit
  27. conversion enough times, you'll discover that you can multiply by 17
  28. (not 16!) to go from 16 to 256 colors (and divide by 17 to go the
  29. other way), because 255/15 = 17.
  30.  
  31. Or,
  32.  
  33.     12    x               12    x
  34.     -- = ---  reduces to  -- = -- ,  x = 12 * 17 = 204.
  35.     15   255               1   17
  36.  
  37. - Ernie
  38.  
  39. --
  40. Ernie Wright <erniew@access.digex.net> sent this message.
  41. To Post a Message           : lightwave@webcom.com
  42. Un/Subscription Requests To : lightwave-request@webcom.com
  43. (DIGEST)                 or : lightwave-digest-request@webcom.com
  44. Administrative Items To     : owner-lightwave@webcom.com